package freya.bean;  
  
import java.io.Serializable;  
import java.util.ArrayList;  
import java.util.Date;  
import java.util.List;  
import java.util.UUID;  
  
 
import freya.dao.SalaDAO;
import freya.model.Sala;
import java.lang.String;
  
public class TableBean {  
  
    private List<Sala> salas;
    
    private Sala selectedSala;
    
    public TableBean(){
        salas = new SalaDAO().List();
    }
    
    public Sala getSala(int codigo){
        Sala sala = new Sala(codigo);
        return sala;
    }
  
    public Sala getSelectedSala() {  
        return selectedSala;  
    }  
    public void setSelectedSala(Sala selectedSala) {  
        this.selectedSala = selectedSala;  
    }  
  
    public List<Sala> getSalas() {  
        return salas;
    }
}  